package com.itany.boot.service;

import com.itany.boot.exception.ChapterExistException;
import com.itany.boot.exception.FileUploadErrorException;
import com.itany.boot.exception.RecourceExistException;
import com.itany.boot.exception.RequestParameterErrorException;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import javax.servlet.http.HttpSession;

/**
 * @date 2025/10/17
 */
public interface ChapterService {

    void addChapter(String title, String inFo) throws RequestParameterErrorException, ChapterExistException;

    void addResource(CommonsMultipartFile file, String rtitle, String costType, String costNumber, String fileType, HttpSession session) throws RequestParameterErrorException, RecourceExistException, FileUploadErrorException;
}
